import { request } from '@/utils/request';

export const voiceList = (query?: any) => {
  return request({
    url: '/sse/brainWavesConfig/getCurrentUserConfig',
    method: 'GET',
    query,
  });
};


export const updateConfig = (data?: any) => {
  return request({
    url: '/sse/brainWavesConfig',
    method: 'PUT',
    data,
  });
};


export const historyList = (data?: any) => {
  return request({
    url: '/sse/brainWavesConfig',
    method: 'PUT',
    data,
  });
};

export const saveHistoryInfo = (data?: any) => {
  return request({
    url: '/sse/brainWavesConfig',
    method: 'PUT',
    data,
  });
};
export const historyInfo = (data?: any) => {
  return request({
    url: '/sse/brainWavesConfig',
    method: 'PUT',
    data,
  });
};

export const updateHistoryInfo = (data?: any) => {
  return request({
    url: '/sse/brainWavesConfig',
    method: 'PUT',
    data,
  });
};
export const deleteHistoryInfo = (data?: any) => {
  return request({
    url: '/sse/brainWavesConfig',
    method: 'PUT',
    data,
  });
};
